Rename buildable methods to not clash with widget methods. (#448928,
authorJohan Dahlin <jdahlin@async.com.br>
Tue, 19 Jun 2007 12:23:36 +0000 (12:23 +0000)
committerJohan Dahlin <johan@src.gnome.org>
Tue, 19 Jun 2007 12:23:36 +0000 (12:23 +0000)
2007-06-19  Johan Dahlin  <jdahlin@async.com.br>

    * gtk/*: Rename buildable methods to not clash with widget
    methods. (#448928, Torsten Schoenfeld)

svn path=/trunk/; revision=18187

23 files changed:
ChangeLog
docs/reference/gtk/gtk-sections.txt
docs/reference/gtk/tmpl/gtkbuildable.sgml
gtk/gtk.symbols
gtk/gtkactiongroup.c
gtk/gtkbuildable.c
gtk/gtkbuildable.h
gtk/gtkbuilder.c
gtk/gtkcelllayout.c
gtk/gtkcelllayout.h
gtk/gtkcellview.c
gtk/gtkcombobox.c
gtk/gtkcontainer.c
gtk/gtkentrycompletion.c
gtk/gtkexpander.c
gtk/gtkframe.c
gtk/gtkiconview.c
gtk/gtknotebook.c
gtk/gtktreeview.c
gtk/gtktreeviewcolumn.c
gtk/gtkuimanager.c
gtk/gtkwidget.c
gtk/gtkwindow.c

index 21cfb107aa2e455b06ceb89f8d466478fe429372..76924a201ab36b69fba0173f7757b5b1c26472d3 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-06-19  Johan Dahlin  <jdahlin@async.com.br>
+
+       * gtk/*: Rename buildable methods to not clash with widget 
+       methods. (#448928, Torsten Schoenfeld)
+
 2007-06-19  Emmanuele Bassi  <ebassi@gnome.org>
 
        * gtk/gtkrecentmanager.c: Use g_timeout_add_seconds_full() for
index 7a3be12593c1e72fc5740204d86e0e32a41b07d9..7a453542548a7a349538fda069676594c064f751 100644 (file)
@@ -452,8 +452,8 @@ GtkBuildable
 GtkBuildableIface
 gtk_buildable_set_name
 gtk_buildable_get_name
-gtk_buildable_add
-gtk_buildable_set_property
+gtk_buildable_add_child
+gtk_buildable_set_buildable_property
 gtk_buildable_construct_child
 gtk_buildable_custom_tag_start
 gtk_buildable_custom_tag_end
index 80804557584ebe820c7d45e2d7106095dd9432a0..8fd5f5d020ed37668a1c867b032e54b1609d3cad 100644 (file)
@@ -58,7 +58,7 @@ SEE ALSO
 @Returns: 
 
 
-<!-- ##### FUNCTION gtk_buildable_add ##### -->
+<!-- ##### FUNCTION gtk_buildable_add_child ##### -->
 <para>
 
 </para>
@@ -69,7 +69,7 @@ SEE ALSO
 @type: 
 
 
-<!-- ##### FUNCTION gtk_buildable_set_property ##### -->
+<!-- ##### FUNCTION gtk_buildable_set_buildable_property ##### -->
 <para>
 
 </para>
index b06f781efba02c25f1e547c6035fc7dfba031313..c3775ee58189d410d58e3601b72bff80f2f76f65 100644 (file)
@@ -423,7 +423,7 @@ gtk_box_set_spacing
 
 #if IN_HEADER(__GTK_BUILDABLE_H__)
 #if IN_FILE(__GTK_BUILDABLE_C__)
-gtk_buildable_add
+gtk_buildable_add_child
 gtk_buildable_construct_child
 gtk_buildable_custom_tag_start
 gtk_buildable_custom_tag_end
@@ -433,7 +433,7 @@ gtk_buildable_get_name
 gtk_buildable_get_type G_GNUC_CONST
 gtk_buildable_parser_finished
 gtk_buildable_set_name
-gtk_buildable_set_property
+gtk_buildable_set_buildable_property
 #endif
 #endif
 
index c976b46e1145e340d3a59d081a941ad1ed888190..34ca057bb3afec1be216f57abf30a2525a3c33af 100644 (file)
@@ -90,10 +90,10 @@ static GtkAction *gtk_action_group_real_get_action (GtkActionGroup      *self,
 
 /* GtkBuildable */
 static void gtk_action_group_buildable_init (GtkBuildableIface *iface);
-static void gtk_action_group_buildable_add (GtkBuildable  *buildable,
-                                           GtkBuilder    *builder,
-                                           GObject       *child,
-                                           const gchar   *type);
+static void gtk_action_group_buildable_add_child (GtkBuildable  *buildable,
+                                                 GtkBuilder    *builder,
+                                                 GObject       *child,
+                                                 const gchar   *type);
 static void gtk_action_group_buildable_set_name (GtkBuildable *buildable,
                                                 const gchar  *name);
 static const gchar* gtk_action_group_buildable_get_name (GtkBuildable *buildable);
@@ -295,16 +295,16 @@ gtk_action_group_init (GtkActionGroup *self)
 static void
 gtk_action_group_buildable_init (GtkBuildableIface *iface)
 {
-  iface->add = gtk_action_group_buildable_add;
+  iface->add_child = gtk_action_group_buildable_add_child;
   iface->set_name = gtk_action_group_buildable_set_name;
   iface->get_name = gtk_action_group_buildable_get_name;
 }
 
 static void
-gtk_action_group_buildable_add (GtkBuildable  *buildable,
-                               GtkBuilder    *builder,
-                               GObject       *child,
-                               const gchar   *type)
+gtk_action_group_buildable_add_child (GtkBuildable  *buildable,
+                                     GtkBuilder    *builder,
+                                     GObject       *child,
+                                     const gchar   *type)
 {
   gtk_action_group_add_action (GTK_ACTION_GROUP (buildable),
                               GTK_ACTION (child));
index acac25fe8246d5e90b47ca4eaebd5feb373cfb75..e5dbf569955afb045009883b050030fe24da15f6 100644 (file)
@@ -103,7 +103,7 @@ gtk_buildable_get_name (GtkBuildable *buildable)
 }
 
 /**
- * gtk_buildable_add:
+ * gtk_buildable_add_child:
  * @buildable: a #GtkBuildable
  * @builder: a #GtkBuilder
  * @child: child to add
@@ -119,10 +119,10 @@ gtk_buildable_get_name (GtkBuildable *buildable)
  * Since: 2.12
  **/
 void
-gtk_buildable_add (GtkBuildable *buildable,
-                   GtkBuilder   *builder,
-                   GObject      *child,
-                   const gchar  *type)
+gtk_buildable_add_child (GtkBuildable *buildable,
+                        GtkBuilder   *builder,
+                        GObject      *child,
+                        const gchar  *type)
 {
   GtkBuildableIface *iface;
 
@@ -130,13 +130,13 @@ gtk_buildable_add (GtkBuildable *buildable,
   g_return_if_fail (GTK_IS_BUILDER (builder));
 
   iface = GTK_BUILDABLE_GET_IFACE (buildable);
-  g_return_if_fail (iface->add != NULL);
+  g_return_if_fail (iface->add_child != NULL);
 
-  (* iface->add) (buildable, builder, child, type);
+  (* iface->add_child) (buildable, builder, child, type);
 }
 
 /**
- * gtk_buildable_set_property:
+ * gtk_buildable_set_buildable_property:
  * @buildable: a #GtkBuildable
  * @builder: a #GtkBuilder
  * @name: name of property
@@ -154,10 +154,10 @@ gtk_buildable_add (GtkBuildable *buildable,
  * Since: 2.12
  **/
 void
-gtk_buildable_set_property (GtkBuildable *buildable,
-                            GtkBuilder   *builder,
-                            const gchar  *name,
-                            const GValue *value)
+gtk_buildable_set_buildable_property (GtkBuildable *buildable,
+                                     GtkBuilder   *builder,
+                                     const gchar  *name,
+                                     const GValue *value)
 {
   GtkBuildableIface *iface;
 
@@ -167,8 +167,8 @@ gtk_buildable_set_property (GtkBuildable *buildable,
   g_return_if_fail (value != NULL);
 
   iface = GTK_BUILDABLE_GET_IFACE (buildable);
-  if (iface->set_property)
-    (* iface->set_property) (buildable, builder, name, value);
+  if (iface->set_buildable_property)
+    (* iface->set_buildable_property) (buildable, builder, name, value);
   else
     g_object_set_property (G_OBJECT (buildable), name, value);
 }
index 397e4e8745a70e36da3c3b7dcea1a39b97bda398..00f71cd4c08e20b514602fd4912c4512298f3100 100644 (file)
@@ -41,82 +41,82 @@ struct _GtkBuildableIface
   GTypeInterface g_iface;
 
   /* virtual table */
-  void          (* set_name)            (GtkBuildable  *buildable,
-                                         const gchar   *name);
-  const gchar * (* get_name)            (GtkBuildable  *buildable);
-  void          (* add)                 (GtkBuildable  *buildable,
-                                         GtkBuilder    *builder,
-                                         GObject       *child,
-                                         const gchar   *type);
-  void          (* set_property)        (GtkBuildable  *buildable,
-                                         GtkBuilder    *builder,
-                                         const gchar   *name,
-                                         const GValue  *value);
-  GObject *     (* construct_child)     (GtkBuildable  *buildable,
-                                         GtkBuilder    *builder,
-                                         const gchar   *name);
-  gboolean      (* custom_tag_start)    (GtkBuildable  *buildable,
-                                         GtkBuilder    *builder,
-                                         GObject       *child,
-                                         const gchar   *tagname,
-                                         GMarkupParser *parser,
-                                         gpointer      *data);
-  void          (* custom_tag_end)      (GtkBuildable  *buildable,
-                                         GtkBuilder    *builder,
-                                         GObject       *child,
-                                         const gchar   *tagname,
-                                         gpointer      *data);
-  void          (* custom_finished)     (GtkBuildable  *buildable,
-                                         GtkBuilder    *builder,
-                                         GObject       *child,
-                                         const gchar   *tagname,
-                                         gpointer       data);
-  void          (* parser_finished)     (GtkBuildable  *buildable,
-                                         GtkBuilder    *builder);
+  void          (* set_name)               (GtkBuildable  *buildable,
+                                            const gchar   *name);
+  const gchar * (* get_name)               (GtkBuildable  *buildable);
+  void          (* add_child)              (GtkBuildable  *buildable,
+                                           GtkBuilder    *builder,
+                                           GObject       *child,
+                                           const gchar   *type);
+  void          (* set_buildable_property) (GtkBuildable  *buildable,
+                                           GtkBuilder    *builder,
+                                           const gchar   *name,
+                                           const GValue  *value);
+  GObject *     (* construct_child)        (GtkBuildable  *buildable,
+                                           GtkBuilder    *builder,
+                                           const gchar   *name);
+  gboolean      (* custom_tag_start)       (GtkBuildable  *buildable,
+                                           GtkBuilder    *builder,
+                                           GObject       *child,
+                                           const gchar   *tagname,
+                                           GMarkupParser *parser,
+                                           gpointer      *data);
+  void          (* custom_tag_end)         (GtkBuildable  *buildable,
+                                           GtkBuilder    *builder,
+                                           GObject       *child,
+                                           const gchar   *tagname,
+                                           gpointer      *data);
+  void          (* custom_finished)        (GtkBuildable  *buildable,
+                                           GtkBuilder    *builder,
+                                           GObject       *child,
+                                           const gchar   *tagname,
+                                           gpointer       data);
+  void          (* parser_finished)        (GtkBuildable  *buildable,
+                                           GtkBuilder    *builder);
 
-  GObject *    (* get_internal_child)   (GtkBuildable  *buildable,
-                                         GtkBuilder    *builder,
-                                         const gchar   *childname);
+  GObject *     (* get_internal_child)     (GtkBuildable  *buildable,
+                                           GtkBuilder    *builder,
+                                           const gchar   *childname);
 };
 
 
-GType     gtk_buildable_get_type           (void) G_GNUC_CONST;
+GType     gtk_buildable_get_type               (void) G_GNUC_CONST;
 
-void      gtk_buildable_set_name           (GtkBuildable        *buildable,
-                                            const gchar         *name);
-const gchar * gtk_buildable_get_name       (GtkBuildable        *buildable);
-void      gtk_buildable_add                (GtkBuildable        *buildable,
-                                            GtkBuilder          *builder,
-                                            GObject             *child,
-                                            const gchar         *type);
-void      gtk_buildable_set_property       (GtkBuildable        *buildable,
-                                            GtkBuilder          *builder,
-                                            const gchar         *name,
-                                            const GValue        *value);
-GObject * gtk_buildable_construct_child    (GtkBuildable        *buildable,
-                                            GtkBuilder          *builder,
-                                            const gchar         *name);
-gboolean  gtk_buildable_custom_tag_start   (GtkBuildable        *buildable,
-                                            GtkBuilder          *builder,
-                                            GObject             *child,
-                                            const gchar         *tagname,
-                                            GMarkupParser       *parser,
-                                            gpointer            *data);
-void      gtk_buildable_custom_tag_end     (GtkBuildable        *buildable,
-                                            GtkBuilder          *builder,
-                                            GObject             *child,
-                                            const gchar         *tagname,
-                                            gpointer            *data);
-void      gtk_buildable_custom_finished    (GtkBuildable        *buildable,
-                                            GtkBuilder          *builder,
-                                            GObject             *child,
-                                            const gchar         *tagname,
-                                            gpointer             data);
-void      gtk_buildable_parser_finished    (GtkBuildable        *buildable,
-                                            GtkBuilder          *builder);
-GObject * gtk_buildable_get_internal_child (GtkBuildable        *buildable,
-                                            GtkBuilder          *builder,
-                                            const gchar         *childname);
+void      gtk_buildable_set_name               (GtkBuildable        *buildable,
+                                               const gchar         *name);
+const gchar * gtk_buildable_get_name           (GtkBuildable        *buildable);
+void      gtk_buildable_add_child              (GtkBuildable        *buildable,
+                                               GtkBuilder          *builder,
+                                               GObject             *child,
+                                               const gchar         *type);
+void      gtk_buildable_set_buildable_property (GtkBuildable        *buildable,
+                                               GtkBuilder          *builder,
+                                               const gchar         *name,
+                                               const GValue        *value);
+GObject * gtk_buildable_construct_child        (GtkBuildable        *buildable,
+                                               GtkBuilder          *builder,
+                                               const gchar         *name);
+gboolean  gtk_buildable_custom_tag_start       (GtkBuildable        *buildable,
+                                               GtkBuilder          *builder,
+                                               GObject             *child,
+                                               const gchar         *tagname,
+                                               GMarkupParser       *parser,
+                                               gpointer            *data);
+void      gtk_buildable_custom_tag_end         (GtkBuildable        *buildable,
+                                               GtkBuilder          *builder,
+                                               GObject             *child,
+                                               const gchar         *tagname,
+                                               gpointer            *data);
+void      gtk_buildable_custom_finished        (GtkBuildable        *buildable,
+                                               GtkBuilder          *builder,
+                                               GObject             *child,
+                                               const gchar         *tagname,
+                                               gpointer             data);
+void      gtk_buildable_parser_finished        (GtkBuildable        *buildable,
+                                               GtkBuilder          *builder);
+GObject * gtk_buildable_get_internal_child     (GtkBuildable        *buildable,
+                                               GtkBuilder          *builder,
+                                               const gchar         *childname);
 
 G_END_DECLS
 
index fbec88c0ddd73ffdeb44209c9bc0bf92b3969de1..145f7d9356d1e19105ba35de86330dbd487f5190 100644 (file)
@@ -421,7 +421,7 @@ _gtk_builder_construct (GtkBuilder *builder,
     {
       buildable = GTK_BUILDABLE (obj);
       iface = GTK_BUILDABLE_GET_IFACE (obj);
-      if (iface->set_property)
+      if (iface->set_buildable_property)
         custom_set_property = TRUE;
     }
 
@@ -429,7 +429,7 @@ _gtk_builder_construct (GtkBuilder *builder,
     {
       GParameter *param = &g_array_index (parameters, GParameter, i);
       if (custom_set_property)
-        iface->set_property (buildable, builder, param->name, &param->value);
+        iface->set_buildable_property (buildable, builder, param->name, &param->value);
       else
         g_object_set_property (obj, param->name, &param->value);
 
@@ -502,8 +502,8 @@ _gtk_builder_add (GtkBuilder *builder,
                      gtk_buildable_get_name (GTK_BUILDABLE (object)),
                      gtk_buildable_get_name (GTK_BUILDABLE (parent))));
   
-  gtk_buildable_add (GTK_BUILDABLE (parent), builder, object,
-                     child_info->type);
+  gtk_buildable_add_child (GTK_BUILDABLE (parent), builder, object,
+                          child_info->type);
 
   child_info->added = TRUE;
 }
index 89f0a1ab03d762979d5feece5f4d08f0c32a039e..9fba57bf0f689ebd802cdb59f9cf7d3691dba5b2 100644 (file)
@@ -406,10 +406,10 @@ _gtk_cell_layout_buildable_custom_tag_end (GtkBuildable *buildable,
 }
 
 void
-_gtk_cell_layout_buildable_add (GtkBuildable      *buildable,
-                               GtkBuilder        *builder,
-                               GObject           *child,
-                               const gchar       *type)
+_gtk_cell_layout_buildable_add_child (GtkBuildable      *buildable,
+                                     GtkBuilder        *builder,
+                                     GObject           *child,
+                                     const gchar       *type)
 {
   GtkCellLayoutIface *iface;
   
index 8e2e272cb2fdf46b1f8883c592a909e67368e4c2..3f03687a10dbe41050698b8282a6d67b6cced422 100644 (file)
@@ -110,7 +110,7 @@ void _gtk_cell_layout_buildable_custom_tag_end       (GtkBuildable  *buildable,
                                                      GObject       *child,
                                                      const gchar   *tagname,
                                                      gpointer      *data);
-void _gtk_cell_layout_buildable_add                  (GtkBuildable  *buildable,
+void _gtk_cell_layout_buildable_add_child            (GtkBuildable  *buildable,
                                                      GtkBuilder    *builder,
                                                      GObject       *child,
                                                      const gchar   *type);
index f9d49896adb0a2ea05c645b104abacfea3c8e051..65f760b8d8ec83b7d06fca76d0bda90dedc27044 100644 (file)
@@ -198,7 +198,7 @@ static void
 gtk_cell_view_buildable_init (GtkBuildableIface *iface)
 {
   parent_buildable_iface = g_type_interface_peek_parent (iface);
-  iface->add = _gtk_cell_layout_buildable_add;
+  iface->add_child = _gtk_cell_layout_buildable_add_child;
   iface->custom_tag_start = gtk_cell_view_buildable_custom_tag_start;
   iface->custom_tag_end = gtk_cell_view_buildable_custom_tag_end;
 }
index 742de106e5170eb724682989c7a78d469e299e47..424d73323b0d9715d124fcf3d8a6288db685b6a3 100644 (file)
@@ -835,7 +835,7 @@ static void
 gtk_combo_box_buildable_init (GtkBuildableIface *iface)
 {
   parent_buildable_iface = g_type_interface_peek_parent (iface);
-  iface->add = _gtk_cell_layout_buildable_add;
+  iface->add_child = _gtk_cell_layout_buildable_add_child;
   iface->custom_tag_start = gtk_combo_box_buildable_custom_tag_start;
   iface->custom_tag_end = gtk_combo_box_buildable_custom_tag_end;
 }
index 1ed606e85e0cd3f654d530e30b14e8c79286d105..3366df02243749f489e866ac02ded18249fd2dfa 100644 (file)
@@ -102,7 +102,7 @@ static gchar* gtk_container_child_default_composite_name (GtkContainer *containe
 
 /* GtkBuildable */
 static void gtk_container_buildable_init           (GtkBuildableIface *iface);
-static void gtk_container_buildable_add            (GtkBuildable *buildable,
+static void gtk_container_buildable_add_child      (GtkBuildable *buildable,
                                                    GtkBuilder   *builder,
                                                    GObject      *child,
                                                    const gchar  *type);
@@ -296,16 +296,16 @@ static void
 gtk_container_buildable_init (GtkBuildableIface *iface)
 {
   parent_buildable_iface = g_type_interface_peek_parent (iface);
-  iface->add = gtk_container_buildable_add;
+  iface->add_child = gtk_container_buildable_add_child;
   iface->custom_tag_start = gtk_container_buildable_custom_tag_start;
   iface->custom_tag_end = gtk_container_buildable_custom_tag_end;
 }
 
 static void
-gtk_container_buildable_add (GtkBuildable  *buildable,
-                            GtkBuilder    *builder,
-                            GObject       *child,
-                            const gchar   *type)
+gtk_container_buildable_add_child (GtkBuildable  *buildable,
+                                  GtkBuilder    *builder,
+                                  GObject       *child,
+                                  const gchar   *type)
 {
   g_return_if_fail (GTK_IS_WIDGET (child));
 
index 53b87748b9b43c27515805459358216aa64d77e1..b4c748aa3d69fdb26640e5219e2e7e4712a94f22 100644 (file)
@@ -395,7 +395,7 @@ gtk_entry_completion_class_init (GtkEntryCompletionClass *klass)
 static void
 gtk_entry_completion_buildable_init (GtkBuildableIface *iface)
 {
-  iface->add = _gtk_cell_layout_buildable_add;
+  iface->add_child = _gtk_cell_layout_buildable_add_child;
   iface->custom_tag_start = _gtk_cell_layout_buildable_custom_tag_start;
   iface->custom_tag_end = _gtk_cell_layout_buildable_custom_tag_end;
 }
index 62c08cd3560d950d00b8704e39935813cf6a1f68..e201e8ec0cf09a948aea5eb57da4b3867f2cc928 100644 (file)
@@ -129,7 +129,7 @@ static void get_expander_bounds (GtkExpander  *expander,
 
 /* GtkBuildable */
 static void gtk_expander_buildable_init           (GtkBuildableIface *iface);
-static void gtk_expander_buildable_add            (GtkBuildable *buildable,
+static void gtk_expander_buildable_add_child      (GtkBuildable *buildable,
                                                   GtkBuilder   *builder,
                                                   GObject      *child,
                                                   const gchar  *type);
@@ -288,10 +288,10 @@ gtk_expander_init (GtkExpander *expander)
 }
 
 static void
-gtk_expander_buildable_add (GtkBuildable  *buildable,
-                           GtkBuilder    *builder,
-                           GObject       *child,
-                           const gchar   *type)
+gtk_expander_buildable_add_child (GtkBuildable  *buildable,
+                                 GtkBuilder    *builder,
+                                 GObject       *child,
+                                 const gchar   *type)
 {
   if (!type)
     gtk_container_add (GTK_CONTAINER (buildable), GTK_WIDGET (child));
@@ -304,7 +304,7 @@ gtk_expander_buildable_add (GtkBuildable  *buildable,
 static void
 gtk_expander_buildable_init (GtkBuildableIface *iface)
 {
-  iface->add = gtk_expander_buildable_add;
+  iface->add_child = gtk_expander_buildable_add_child;
 }
 
 static void
index fba55df934b60680f036a94f2df247a74f5e5d66..b27fdb205aa21a01e16a66f8d10083ecb17cc7cc 100644 (file)
@@ -76,7 +76,7 @@ static void gtk_frame_real_compute_child_allocation (GtkFrame      *frame,
 
 /* GtkBuildable */
 static void gtk_frame_buildable_init                (GtkBuildableIface *iface);
-static void gtk_frame_buildable_add                 (GtkBuildable *buildable,
+static void gtk_frame_buildable_add_child           (GtkBuildable *buildable,
                                                     GtkBuilder   *builder,
                                                     GObject      *child,
                                                     const gchar  *type);
@@ -162,14 +162,14 @@ gtk_frame_class_init (GtkFrameClass *class)
 static void
 gtk_frame_buildable_init (GtkBuildableIface *iface)
 {
-  iface->add = gtk_frame_buildable_add;
+  iface->add_child = gtk_frame_buildable_add_child;
 }
 
 static void
-gtk_frame_buildable_add (GtkBuildable *buildable,
-                        GtkBuilder   *builder,
-                        GObject      *child,
-                        const gchar  *type)
+gtk_frame_buildable_add_child (GtkBuildable *buildable,
+                              GtkBuilder   *builder,
+                              GObject      *child,
+                              const gchar  *type)
 {
   if (type && strcmp (type, "label") == 0)
     gtk_frame_set_label_widget (GTK_FRAME (buildable), GTK_WIDGET (child));
index ea7a1933b0a5f3da7158d53adf98cf9328fc7de3..96e09eb33aa86f365e576e9e91bae25fc3e60495 100644 (file)
@@ -916,7 +916,7 @@ static void
 gtk_icon_view_buildable_init (GtkBuildableIface *iface)
 {
   parent_buildable_iface = g_type_interface_peek_parent (iface);
-  iface->add = _gtk_cell_layout_buildable_add;
+  iface->add_child = _gtk_cell_layout_buildable_add_child;
   iface->custom_tag_start = gtk_icon_view_buildable_custom_tag_start;
   iface->custom_tag_end = gtk_icon_view_buildable_custom_tag_end;
 }
index 4297456f1ff5faa36a4ac940f1308a062d7be656..48011b564a1d3a0c9d06947a0df4c37efd1888b2 100644 (file)
@@ -425,7 +425,7 @@ static void do_detach_tab  (GtkNotebook *from,
 
 /* GtkBuildable */
 static void gtk_notebook_buildable_init           (GtkBuildableIface *iface);
-static void gtk_notebook_buildable_add            (GtkBuildable *buildable,
+static void gtk_notebook_buildable_add_child      (GtkBuildable *buildable,
                                                   GtkBuilder   *builder,
                                                   GObject      *child,
                                                   const gchar  *type);
@@ -1108,14 +1108,14 @@ gtk_notebook_init (GtkNotebook *notebook)
 static void
 gtk_notebook_buildable_init (GtkBuildableIface *iface)
 {
-  iface->add = gtk_notebook_buildable_add;
+  iface->add_child = gtk_notebook_buildable_add_child;
 }
 
 static void
-gtk_notebook_buildable_add (GtkBuildable  *buildable,
-                           GtkBuilder    *builder,
-                           GObject       *child,
-                           const gchar   *type)
+gtk_notebook_buildable_add_child (GtkBuildable  *buildable,
+                                 GtkBuilder    *builder,
+                                 GObject       *child,
+                                 const gchar   *type)
 {
   GtkNotebook *notebook = GTK_NOTEBOOK (buildable);
 
index c1c7a6113f2f114300ee0651f47373ddef35d840..28df174656cacecc1b8f2ce350d9f7726547e190 100644 (file)
@@ -462,11 +462,11 @@ static GtkTreeViewColumn *gtk_tree_view_get_drop_column (GtkTreeView       *tree
                                                         gint               drop_position);
 
 /* GtkBuildable */
-static void gtk_tree_view_buildable_add (GtkBuildable *tree_view,
-                                        GtkBuilder  *builder,
-                                        GObject     *child,
-                                        const gchar *type);
-static void gtk_tree_view_buildable_init (GtkBuildableIface *iface);
+static void gtk_tree_view_buildable_add_child (GtkBuildable *tree_view,
+                                              GtkBuilder  *builder,
+                                              GObject     *child,
+                                              const gchar *type);
+static void gtk_tree_view_buildable_init      (GtkBuildableIface *iface);
 
 
 static gboolean scroll_row_timeout                   (gpointer     data);
@@ -1295,7 +1295,7 @@ gtk_tree_view_class_init (GtkTreeViewClass *class)
 static void
 gtk_tree_view_buildable_init (GtkBuildableIface *iface)
 {
-  iface->add = gtk_tree_view_buildable_add;
+  iface->add_child = gtk_tree_view_buildable_add_child;
 }
 
 static void
@@ -1507,10 +1507,10 @@ gtk_tree_view_finalize (GObject *object)
 \f
 
 static void
-gtk_tree_view_buildable_add (GtkBuildable *tree_view,
-                            GtkBuilder  *builder,
-                            GObject     *child,
-                            const gchar *type)
+gtk_tree_view_buildable_add_child (GtkBuildable *tree_view,
+                                  GtkBuilder  *builder,
+                                  GObject     *child,
+                                  const gchar *type)
 {
   gtk_tree_view_append_column (GTK_TREE_VIEW (tree_view), GTK_TREE_VIEW_COLUMN (child));
 }
index 86be0371b7cd9e8b83f44224ec793d193881377c..2a352d9d4aba954d497ebcc24c46d4c56e167a00 100644 (file)
@@ -331,7 +331,7 @@ gtk_tree_view_column_class_init (GtkTreeViewColumnClass *class)
 static void
 gtk_tree_view_column_buildable_init (GtkBuildableIface *iface)
 {
-  iface->add = _gtk_cell_layout_buildable_add;
+  iface->add_child = _gtk_cell_layout_buildable_add_child;
   iface->custom_tag_start = _gtk_cell_layout_buildable_custom_tag_start;
   iface->custom_tag_end = _gtk_cell_layout_buildable_custom_tag_end;
 }
index deaaf76ffd8bd912952ee02319ff165498c68235..3e0ac69be6b1342bcf3043531e97931d1d79fa66 100644 (file)
@@ -144,11 +144,11 @@ static void        node_remove_ui_reference       (GNode             *node,
                                                    guint              merge_id);
 
 /* GtkBuildable */
-static void gtk_ui_manager_buildable_init (GtkBuildableIface *iface);
-static void gtk_ui_manager_buildable_add (GtkBuildable  *buildable,
-                                         GtkBuilder    *builder,
-                                         GObject       *child,
-                                         const gchar   *type);
+static void gtk_ui_manager_buildable_init      (GtkBuildableIface *iface);
+static void gtk_ui_manager_buildable_add_child (GtkBuildable  *buildable,
+                                               GtkBuilder    *builder,
+                                               GObject       *child,
+                                               const gchar   *type);
 static GObject* gtk_ui_manager_buildable_construct_child (GtkBuildable *buildable,
                                                          GtkBuilder   *builder,
                                                          const gchar  *name);
@@ -428,17 +428,17 @@ gtk_ui_manager_finalize (GObject *object)
 static void
 gtk_ui_manager_buildable_init (GtkBuildableIface *iface)
 {
-  iface->add = gtk_ui_manager_buildable_add;
+  iface->add_child = gtk_ui_manager_buildable_add_child;
   iface->construct_child = gtk_ui_manager_buildable_construct_child;
   iface->custom_tag_start = gtk_ui_manager_buildable_custom_tag_start;
   iface->custom_tag_end = gtk_ui_manager_buildable_custom_tag_end;
 }
 
 static void
-gtk_ui_manager_buildable_add (GtkBuildable  *buildable,
-                             GtkBuilder    *builder,
-                             GObject       *child,
-                             const gchar   *type)
+gtk_ui_manager_buildable_add_child (GtkBuildable  *buildable,
+                                   GtkBuilder    *builder,
+                                   GObject       *child,
+                                   const gchar   *type)
 {
   GtkUIManager *self = GTK_UI_MANAGER (buildable);
   guint pos;
index 166fe6b20fd5b2c710adeb710fd67dc29f4701e5..2a54b6e9e3a138aab24fadc9ef3db6f0265614ed 100644 (file)
@@ -251,10 +251,10 @@ static void             gtk_widget_buildable_interface_init     (GtkBuildableIfa
 static void             gtk_widget_buildable_set_name           (GtkBuildable     *buildable,
                                                                  const gchar      *name);
 static const gchar *    gtk_widget_buildable_get_name           (GtkBuildable     *buildable);
-static void             gtk_widget_buildable_set_property       (GtkBuildable     *buildable,
-                                                                 GtkBuilder       *builder,
-                                                                 const gchar      *name,
-                                                                 const GValue     *value);
+static void             gtk_widget_buildable_set_buildable_property (GtkBuildable     *buildable,
+                                                                    GtkBuilder       *builder,
+                                                                    const gchar      *name,
+                                                                    const GValue     *value);
 static gboolean         gtk_widget_buildable_custom_tag_start   (GtkBuildable     *buildable,
                                                                  GtkBuilder       *builder,
                                                                  GObject          *child,
@@ -8446,7 +8446,7 @@ gtk_widget_buildable_interface_init (GtkBuildableIface *iface)
 
   iface->set_name = gtk_widget_buildable_set_name;
   iface->get_name = gtk_widget_buildable_get_name;
-  iface->set_property = gtk_widget_buildable_set_property;
+  iface->set_buildable_property = gtk_widget_buildable_set_buildable_property;
   iface->parser_finished = gtk_widget_buildable_parser_finshed;
   iface->custom_tag_start = gtk_widget_buildable_custom_tag_start;
   iface->custom_finished = gtk_widget_buildable_custom_finshed;
@@ -8466,10 +8466,10 @@ gtk_widget_buildable_get_name (GtkBuildable *buildable)
 }
 
 static void
-gtk_widget_buildable_set_property (GtkBuildable *buildable,
-                                  GtkBuilder   *builder,
-                                  const gchar  *name,
-                                  const GValue *value)
+gtk_widget_buildable_set_buildable_property (GtkBuildable *buildable,
+                                            GtkBuilder   *builder,
+                                            const gchar  *name,
+                                            const GValue *value)
 {
   if (strcmp (name, "has-default") == 0 && g_value_get_boolean (value))
       g_object_set_qdata (G_OBJECT (buildable), quark_builder_has_default,
index 654ed152cba34f213212320c6ae6dbfd2d65208a..9b55757639f5746fe25ab2f304a1908e7502b89f 100644 (file)
@@ -324,10 +324,10 @@ static void gtk_window_get_property (GObject         *object,
 
 /* GtkBuildable */
 static void gtk_window_buildable_interface_init  (GtkBuildableIface *iface);
-static void gtk_window_buildable_set_property    (GtkBuildable        *buildable,
-                                                 GtkBuilder          *builder,
-                                                 const gchar         *name,
-                                                 const GValue        *value);
+static void gtk_window_buildable_set_buildable_property (GtkBuildable        *buildable,
+                                                        GtkBuilder          *builder,
+                                                        const gchar         *name,
+                                                        const GValue        *value);
 static void gtk_window_buildable_parser_finished (GtkBuildable     *buildable,
                                                  GtkBuilder       *builder);
 
@@ -1133,23 +1133,23 @@ static void
 gtk_window_buildable_interface_init (GtkBuildableIface *iface)
 {
   parent_buildable_iface = g_type_interface_peek_parent (iface);
-  iface->set_property = gtk_window_buildable_set_property;
+  iface->set_buildable_property = gtk_window_buildable_set_buildable_property;
   iface->parser_finished = gtk_window_buildable_parser_finished;
 
 }
 
 static void
-gtk_window_buildable_set_property (GtkBuildable        *buildable,
-                                  GtkBuilder          *builder,
-                                  const gchar         *name,
-                                  const GValue        *value)
+gtk_window_buildable_set_buildable_property (GtkBuildable        *buildable,
+                                            GtkBuilder          *builder,
+                                            const gchar         *name,
+                                            const GValue        *value)
 {
   GtkWindowPrivate *priv = GTK_WINDOW_GET_PRIVATE (buildable);
 
   if (strcmp (name, "visible") == 0 && g_value_get_boolean (value))
     priv->builder_visible = TRUE;
   else
-    parent_buildable_iface->set_property (buildable, builder, name, value);
+    parent_buildable_iface->set_buildable_property (buildable, builder, name, value);
 }
 
 static void